import request from '@/api/request'

export type LoginPayload = { 
  email: string
  password: string
  captchaId?: string
  captchaCode?: string
}

export async function loginApi(data: LoginPayload) {
  return request<any>({
    url: '/auth/login',
    method: 'POST',
    data,
  })
}
